package com.sc.pattern.simplelistener;

/**
 * Created  on 2018/1/6.
 *
 * @author sc
 */
public class Client {
    public static void main(String[] args) {
        Subject subject = new Subject();
        Observer observer = new BinaryObserver(subject);
        Observer observer1 = new OneObserver(subject);
        subject.setState(1);

        subject.setState(222);


        subject.setState(123);
    }
}
